package com.itogis.rest.controler;

import java.io.IOException;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * 图片管理
 * 
 * @author Administrator
 * 
 */
@Controller
@RequestMapping("/image")
public class ImagesControler  extends CommomsControler{


	/**
	 * 登录验证
	 * 
	 * @param request
	 * @param response
	 * @param userInfo: form提交的用户登录信息，前端的name与form的属性对应
	 * @return
	 * @throws IOException
	 */
	@RequestMapping("/list")
	public String list(HttpServletRequest request,
			HttpServletResponse response)
			throws IOException {
			List list = imageService.list();
			request.setAttribute("imageList", list);
			request.setAttribute("imageObject", request.getParameter("imageObject"));
			request.setAttribute("imagePath", request.getParameter("imagePath"));
		return "system/imageSelect.jsp";
	}
}
